<?php

defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.view');

class loginModeldashboard extends JModel 
{
    function list_office()
    {
        $db = &JFactory::getDbo();
        $sql = "select * from #__hc_branch where deleted=0";
        $db->setQuery($sql);
        return $db->loadObjectList();
    }
}
?>

